
function list(){
		var data = [{
		        img:{
					simg:[
						"https://image.cnhnb.com/image/png/head/2018/05/25/5ca94bb334a0433fbbea0d238215bf6d.png?imageView2/1/w/525/h/525/format/jpg/interlace/1/quality/100/ignore-error/1",
						"https://image.cnhnb.com/image/jpeg/head/2019/10/16/dab6ec5c7dfc486e9ff2ecebedee2dbf.jpeg?imageView2/1/w/525/h/525/format/jpg/interlace/1/quality/100/ignore-error/1",
						"https://image.cnhnb.com/image/jpeg/head/2020/03/02/eaad569417634c91a8b0beb3e5beba4f.jpeg?imageView2/1/w/525/h/525/format/jpg/interlace/1/quality/100/ignore-error/1",
						"https://image.cnhnb.com/image/jpeg/head/2020/03/04/fcd6157a481a4b65a88bd35958b950e4.jpeg?imageView2/1/w/525/h/525/format/jpg/interlace/1/quality/100/ignore-error/1",
						"https://image.cnhnb.com/image/png/head/2020/01/06/c7f570203be64b5f819ade7876932246.png?imageView2/1/w/525/h/525/format/jpg/interlace/1/quality/100/ignore-error/1",
						"https://image.cnhnb.com/image/jpeg/head/2019/03/23/1e1a906fffd0466cb5330bc09cbcfb91.jpeg?imageView2/1/w/525/h/525/format/jpg/interlace/1/quality/100/ignore-error/1",
						"https://image.cnhnb.com/image/jpeg/head/2018/11/16/b57e9ee17d1947698e2e5d0ff048ab3f.jpeg?imageView2/1/w/525/h/525/format/jpg/interlace/1/quality/100/ignore-error/1",
						"https://image.cnhnb.com/image/jpeg/head/2019/07/05/52fd0bf99d6f4142a10badcc589d6da7.jpeg?imageView2/1/w/525/h/525/format/jpg/interlace/1/quality/100/ignore-error/1",
						"https://image.cnhnb.com/image/jpg/head/2018/06/20/8cc03f7214e44b4089dd668636aad916.jpg?imageView2/1/w/525/h/525/format/jpg/interlace/1/quality/100/ignore-error/1",
						"https://image.cnhnb.com/image/jpg/head/2018/06/20/8cc03f7214e44b4089dd668636aad916.jpg?imageView2/1/w/525/h/525/format/jpg/interlace/1/quality/100/ignore-error/1",	
					]
				},
		       price:"1.8",
		       danjian:"元/个",
		        data:"成交10.万元",
		        you:"优选",
		        fuhua:"陕西眉县绿心猕猴桃...",
		        hours:"24小时发货",
		        xiangqing:"查看详情",
				goodsId:{
					id:[
						"123asd","123sd","123assd","123aasd"
					]
				}
		    },{
		        img:{
					simg:[
						"https://image.cnhnb.com/image/jpeg/head/2020/03/14/6ec3a498ccf04658b7221199f4bc5d5e.jpeg?imageView2/1/w/525/h/525/format/jpg/interlace/1/quality/100/ignore-error/1",
						"https://image.cnhnb.com/image/jpeg/head/2020/02/20/79c0b6eb3e7b4a4288b1eb631027af24.jpeg?imageView2/1/w/525/h/525/format/jpg/interlace/1/quality/100/ignore-error/1",
						"https://image.cnhnb.com/image/png/head/2019/03/29/ea28d24d51b94fee8a447b69bf52c0a2.png?imageView2/1/w/525/h/525/format/jpg/interlace/1/quality/100/ignore-error/1",
						"https://image.cnhnb.com/image/jpeg/head/2020/03/27/07de90c6a8e549fd98757a2737025c9b.jpeg?imageView2/1/w/525/h/525/format/jpg/interlace/1/quality/100/ignore-error/1",
						"https://image.cnhnb.com/image/jpeg/head/2020/03/31/2ea9105d24864897a3f652d6b63b15d1.jpeg?imageView2/1/w/525/h/525/format/jpg/interlace/1/quality/100/ignore-error/1",
						"https://image.cnhnb.com/image/png/head/2019/12/03/44c766502ae1480c96823110ed3591e9.png?imageView2/1/w/525/h/525/format/jpg/interlace/1/quality/100/ignore-error/1",
						"https://image.cnhnb.com/image/jpeg/head/2020/02/27/00da26fef3cf422a860866c28c8a29c1.jpeg?imageView2/1/w/525/h/525/format/jpg/interlace/1/quality/100/ignore-error/1",
						"https://image.cnhnb.com/image/jpeg/head/2020/03/25/0f28f9c099d34fdcb5a2ad21616f19f5.jpeg?imageView2/1/w/525/h/525/format/jpg/interlace/1/quality/100/ignore-error/1",
						"https://image.cnhnb.com/image/jpeg/head/2020/03/17/07e568e76fed4e1ca9120ebb0e7b61d1.jpeg?imageView2/1/w/525/h/525/format/jpg/interlace/1/quality/100/ignore-error/1",
						"https://image.cnhnb.com/image/jpeg/head/2020/03/11/1b54e4ca578f47afbbb101a6fda78533.jpeg?imageView2/1/w/525/h/525/format/jpg/interlace/1/quality/100/ignore-error/1"
					]
				},
		       price:"1.8",
		       danjian:"元/个",
		        data:"成交10.万元",
		        you:"优选",
		        fuhua:"陕西眉县绿心猕猴桃...",
		        hours:"24小时发货",
		        xiangqing:"查看详情",
				goodsId:{
					id:[
						"123asd","123sd","123assd","123aasd"
					]
				}
		    },{
		       img:{
				  simg:[
					   "https://image.cnhnb.com/image/jpeg/head/2020/03/05/20946e08f1414a559159bca4db26ca41.jpeg?imageView2/1/w/525/h/525/format/jpg/interlace/1/quality/100/ignore-error/1",
					   "https://image.cnhnb.com/image/jpeg/head/2019/12/19/e2fca184d8e9474a96d6aefb158df047.jpeg?imageView2/1/w/525/h/525/format/jpg/interlace/1/quality/100/ignore-error/1",
					   "https://image.cnhnb.com/image/jpeg/head/2019/07/06/ab88c7bfc33c4435b749985340f88e7a.jpeg?imageView2/1/w/525/h/525/format/jpg/interlace/1/quality/100/ignore-error/1",
					   "https://image.cnhnb.com/image/jpeg/head/2019/12/13/dabb16eed30d42e9bf76e6b0233371b1.jpeg?imageView2/1/w/525/h/525/format/jpg/interlace/1/quality/100/ignore-error/1",
					   "https://image.cnhnb.com/image/jpeg/head/2019/10/20/a6ae6d1bf7d246428f9e7875fe2f5c61.jpeg?imageView2/1/w/525/h/525/format/jpg/interlace/1/quality/100/ignore-error/1",
					   "https://image.cnhnb.com/image/jpeg/head/2019/11/06/a371e0a8d4934d3c8031279f8b843a2c.jpeg?imageView2/1/w/525/h/525/format/jpg/interlace/1/quality/100/ignore-error/1",
					   "https://image.cnhnb.com/image/jpeg/head/2020/03/01/0d230237df1644b5adbd8b0546fb4deb.jpeg?imageView2/1/w/525/h/525/format/jpg/interlace/1/quality/100/ignore-error/1",
					   "https://image.cnhnb.com/image/jpeg/head/2019/08/14/bce874e984104ba7990bf8187d62c43c.jpeg?imageView2/1/w/525/h/525/format/jpg/interlace/1/quality/100/ignore-error/1",
					   "https://image.cnhnb.com/image/jpeg/head/2020/03/30/f60183593d77401fa7d82c12427696d2.jpeg?imageView2/1/w/525/h/525/format/jpg/interlace/1/quality/100/ignore-error/1",
					   "https://image.cnhnb.com/image/jpeg/head/2019/10/10/073e4971c1164ec7b1ece0ba71234c0c.jpeg?imageView2/1/w/525/h/525/format/jpg/interlace/1/quality/100/ignore-error/1"
				   ]
		       },
		       price:"1.8",
			   danjian:"元/只",
		       data:"成交10.万元",
		       you:"优选",
		       fuhua:"杂交鸭苗专业孵化...",
		       hours:"24小时发货",
		       xiangqing:"查看详情",
			    goodsId:{
			    	id:[
			    		"123afsd","12g3sd","12h3assd","1g23aasd"
			    	]
			    }
		    }]
			
		class GoodsList{
			constructor(){
				this.data = data;
				this.cont = document.querySelector(".conts");
				this.conts2 = document.querySelector(".conts2");
				this.conts3 = document.querySelector(".conts3");
			}
			init(){
				var str = ""
				for(var i = 0;i<this.data[0].img.simg.length;i++){
						str +=`<li index="${this.data[0].goodsId.id[i]}">
								<img src="${this.data[0].img.simg[i]}" alt="">
								<div class="intro-li-x">
									<span><i>${this.data[0].price}</i>${this.data[0].danjian}</span>
									<em>${this.data[0].data}</em>
								</div>
								<div class="intro-li-xx">
									<span><i>${this.data[0].you}</i></span>
									<em>${this.data[0].fuhua}</em>
								</div>
								<div class="intro-li-xxx">
									<i>${this.data[0].hours}</i>
								</div>
								
								<div class="intro-li-b login">
									<a href="../project/pages/details.html"><i>${this.data[0].xiangqing}</i></a>
									<span class="iconfont icon-iconarr-right"></span>
								</div>
							</li>
						`
					}
					
					var str1 = ""
					for(var i = 0;i<this.data[1].img.simg.length;i++){
							str1 +=`<li index="${this.data[1].goodsId.id[i]}">
									<img src="${this.data[1].img.simg[i]}" alt="">
									<div class="intro-li-x">
										<span><i>${this.data[1].price}</i>${this.data[2].danjian}</span>
										<em>${this.data[1].data}</em>
									</div>
									<div class="intro-li-xx">
										<span><i>${this.data[2].you}</i></span>
										<em>${this.data[1].fuhua}</em>
									</div>
									<div class="intro-li-xxx">
										<i>${this.data[1].hours}</i>
									</div>
									
									<div class="intro-li-b login">
										<a href=""><i>${this.data[1].xiangqing}</i></a>
										<span class="iconfont icon-iconarr-right"></span>
									</div>
								</li>
							`
						}
						
						var str2 = ""
						for(var i = 0;i<this.data[2].img.simg.length;i++){
								str2 +=`<li index="${this.data[2].goodsId.id[i]}">
									<img src="${this.data[2].img.simg[i]}" alt="">
									<div class="intro-li-x">
										<span><i>${this.data[2].price}</i>${this.data[2].danjian}</span>
										<em>${this.data[2].data}</em>
									</div>
									<div class="intro-li-xx">
										<span><i>${this.data[2].you}</i></span>
										<em>${this.data[2].fuhua}</em>
									</div>
									<div class="intro-li-xxx">
										<i>${this.data[2].hours}</i>
									</div>
									
									<div class="intro-li-b login">
										<a href=""><i>${this.data[2].xiangqing}</i></a>
										<span class="iconfont icon-iconarr-right"></span>
									</div>
								</li>
								`
							}	
				this.cont.innerHTML = str;
				this.conts2.innerHTML = str1;
				this.conts3.innerHTML = str2;
			}
		}
			
		var gl = new GoodsList();
			gl.init();	
}